//
//  ThirdScrollView.m
//  相册罚写3
//
//  Created by dllo on 15/11/18.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ThirdScrollView.h"

@implementation ThirdScrollView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubviews];
    }
    return self;
}

- (void)createSubviews
{
    self.backgroundColor = [UIColor whiteColor];

    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
    [self addSubview:self.imageV];
    [_imageV release];
    
    self.delegate = self;

    
    self.minimumZoomScale = 1.0;
    self.maximumZoomScale = 10;
    
    
}

- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
{
    return scrollView == self ? self.subviews.firstObject : nil;
}

@end
